#! /bin/bash
export LANG=en_US.UTF-8

pid=$*
config_path=`ls -l /proc/$pid/exe | awk '{for(i=1;i<=NF;i++){if($i ~ /fdfs_storaged/) print $i}}'`
echo "${config_path%*fdfs_storaged}"

